package com.improgram.pojo;

public class Article {
    //文章

    private Integer id;
    private  String title;//文章标题
    private String content;//文章内容
    private Integer userId;//用户外键id
    private  Integer categoryId;//分类外键id
    private User user;//用户实体类。选择使用
    private  Categrory categrory;//同上user


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Categrory getCategrory() {
        return categrory;
    }

    public void setCategrory(Categrory categrory) {
        this.categrory = categrory;
    }
}
